package com.scaffold.springmvc.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.MappedSuperclass;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties({"created", "modified"})
@MappedSuperclass
public abstract class BasicEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	//创建时间 @editable no
	private Date created;
	
	//更新时间 @editable no
	private Date modified;

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date updated) {
		this.modified = updated;
	}

}
